<template>
	<view>
		<view class="exam-list">
			<!-- 示例中的静态项目 -->
			<view class="item" @click.stop="">
				<view class="top">
					<view class="exam-title">全部掌握</view>
					<view class="sub-title">共题</view>
				</view>
				<view class="bottom">
					<view class="left">
						<button @click="UserAnswerList">查看题目</button>
					</view>
					<!-- 右侧内容 -->
					<!-- <view class="right">收藏记录</view> -->
				</view>
			</view>

			<!-- 动态渲染项目 -->
			<view class="item" v-for="(v, k) in beforeList" :key="k" @click.stop="viewBookDetail(k, v)">
				<view class="top">
					<view class="exam-title">{{ v.title }}</view>
					<view class="sub-title">共{{ v.sum }}题</view>
				</view>
				<view class="bottom">
					<view class="left">查看题目</view>
					<!-- <view class="right">考试记录</view> -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			
			};
		},
		methods: {
		

		},
		mounted() {
			this.UserAnswerList()
		}
	}
</script>

<style lang="scss">
	.exam-list {
		margin: 25rpx 25rpx 50rpx 25rpx;

		.title {
			color: #333;
			font-size: 30rpx;
			margin-bottom: 40rpx;

			text {
				margin-left: 25rpx;
				color: #555;
				font-weight: normal;
				font-size: 30rpx
			}
		}

		.item {
			padding: 35rpx;
			margin-bottom: 25rpx;
			background: #fff;
			box-shadow: 0 3rpx 20rpx rgba(183, 183, 183, 0.3);
			border-radius: 10rpx;
			overflow: hidden;

			.top {
				border-bottom: 1rpx #cfcfcf solid;
				padding-bottom: 20rpx;
				display: flex;
				justify-content: space-between;

				.sub-title {
					font-size: 25rpx;
					color: #888;
				}
			}

			.bottom {
				padding-top: 20rpx;
				display: flex;
				justify-content: space-around;
				font-size: 28rpx;
				color: $themeColor;
			}

			.exam-title {
				font-size: 30rpx;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				color: #333;

				.sub-title {
					font-size: 25rpx;
					color: #666;
				}
			}

		}
	}
</style>